﻿<h3>Recent Posts</h3>
<ul>
    @foreach (Pulog.Models.Post post in (new Pulog.Models.PostRepository()).GetRecentPostList())
    {
        <li><a href="@Url.Content("~/Posts/")@post.slug">@post.title</a></li>
    }
</ul>

<h3>Recent Comments</h3>
<ul>
    @foreach (Pulog.Models.Comment comment in (new Pulog.Models.PostRepository().GetRecentComments()))
    {
        <li><a href="@Url.Content("~/Posts/")@comment.Post.slug#Comment@(comment.CommentID)">@Helper.ConvertToPlainText(comment.CommentContent)</a></li>
    }
</ul>

<h3>Categories</h3>
<ul>
    @foreach (Pulog.Models.Category category in (new Pulog.Models.PostRepository().GetCategories()))
    { 
        <li><a href="@Url.Content("~/Category/")@category.categoryName">@category.categoryName</a></li>
    }
</ul>

<h3>Links</h3>
<ul>
    @foreach (Pulog.Models.Link link in (new Pulog.Models.BlogRepository().GetLinks()))
    { 
        <li><a href="@link.linkURL" target="_blank">@link.linkName</a></li>
    }
</ul>